import { Component, OnInit, Input, Output,EventEmitter } from '@angular/core';

@Component({
  selector: 'app-document',
  templateUrl: './document.component.html',
  styleUrls: ['./document.component.scss']
  
})
export class DocumentComponent implements OnInit {
  @Input() doc:any;
  public flag:boolean=true;
  @Output() closeModal = new EventEmitter();
  constructor() {

   }

  ngOnInit() {
 
  }
  myclose(){
     this.flag = !this.flag;
     this.closeModal.emit(this.flag)
  } 
}
